package at.kaok.gui;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.GridLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

import betfair.global.Login;

import at.kaok.gui.panels.LoginPanel;
import at.kaok.gui.panels.MenuePanel;

public class Start  extends JFrame{

	private MenuePanel pnlMenu;
	private LoginPanel pnlLogin;
	
	private static Start thisObj = null;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Start window = new Start();
					thisObj = window;
					Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();
					window.setVisible(true);
					int w = 500;
					int h = 500;
					int x = (dim.width-w)/2;
					int y = (dim.height-h)/2;
					window.setBounds(x, y, w, h);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Start() {

		initialize();
	}
	
	public static Start getInstance(){
		return thisObj;
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		pnlLogin = new LoginPanel();
		this.setLayout(new BorderLayout());
		this.add(pnlLogin,BorderLayout.CENTER);

		
	}
	
	public void close(){
		this.close();
		
	}

}
